package git.soulbgm.common;

import git.soulbgm.common.handle.TcpClientHandle;
import git.soulbgm.common.socket.TcpClient;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2019-04-01 19:01
 * @description
 */
@Service
public class StartTcpClient {

    @PostConstruct
    public void start() {
        TcpClient tcpClient = TcpClient.getTcpClient("192.168.72.137", 8283);
        tcpClient.start(new TcpClientHandle(tcpClient));
    }

}
